package com.dragon.treemap;

import java.util.Comparator;
import java.util.TreeMap;

/**
 * @author dragon
 * @version V1.0.0-RELEASE
 * @date 2019/6/3 13:26
 */
public class TreeMapTest {

    public static void main(String[] args) {
        TreeMap<Person, Integer> map = new TreeMap<>();
        Person dragon = new Person("dragon", 27);
        Person mars = new Person("mars", 25);
        Person hero = new Person("hero", 23);
        Person en = new Person("en", 21);
        map.put(dragon, 1);
        map.put(mars, 1);
        map.put(hero, 1);
        map.put(en, 1);

    }
}
